package com.atguigu.gulimall.member;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * feign远程调用步骤
 *   1.引入open-feign
 *   2.编写远程接口，声明(@FeignClient)此接口会远程调用其他远程服务(并指定服务的名称)
 *     2-1.此接口中的方法都是一个远程的调用，需要声明出调用的路径，通过springmvc注解的方式
 *   3.开启远程调用功能 @EnableFeignClients
 */
@SpringBootApplication
@EnableDiscoveryClient
@MapperScan("com.atguigu.gulimall.member.dao")
@EnableFeignClients(basePackages = "com.atguigu.gulimall.member.feign")
public class GulimallMemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallMemberApplication.class, args);
    }

}
